package edu.xhu.model.common.constants;

public class HotVideoConstants {
    //热点视频key常量
    public static final String HOT_VIDEOS_KEY_A = "hot_videos:a";
    public static final String HOT_VIDEOS_KEY_B = "hot_videos:b";

    /**
     * 热门视频查询时间间隔，(单位：天)
     */
    public static final int INTERVAL_DAYS = 60;

    /**
     * 热门视频查询条数
     */
    public static final int LIMIT = 50;

    // 权重常量
    /**
     * 播放数权重
     */
    public static final double PLAY_WEIGHT = 0.01;

    /**
     * 弹幕数权重
     */
    public static final double DANMU_WEIGHT = 0.1;

    /**
     * 点赞数权重
     */
    public static final double LIKES_WEIGHT = 0.3;

    /**
     * 投币数权重
     */
    public static final double COIN_WEIGHT = 0.4;

    /**
     * 收藏数权重
     */
    public static final double COLLECT_WEIGHT = 0.4;

    /**
     * 分享数权重
     */
    public static final double SHARES_WEIGHT = 0.4;

    /**
     * 评论数权重
     */
    public static final double COMMENTS_WEIGHT = 0.1;
}
